package com.rabbiter.association.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 数据实体类
 * 社团信息
 */
@Data
@TableName(value = "teams")
@ApiModel(description = "社团实体")
public class Teams implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "社团ID")
    private String id;

    /**
     * 社团名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "社团名称")
    private String name;

    /**
     * 建立时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    /**
     * 社团人数
     */
    @TableField(value = "total")
    @ApiModelProperty(value = "社团人数")
    private Integer total;

    /**
     * 社团团长
     */
    @TableField(value = "manager")
    @ApiModelProperty(value = "社团管理员ID")
    private String manager;

    /**
     * 社团编号
     */
    @TableField(value = "type_id")
    @ApiModelProperty(value = "社团类型ID")
    private String typeId;


    @Override
    public String toString() {

        return "Teams [id=" + id
                + ", name=" + name
                + ", createTime=" + createTime
                + ", total=" + total
                + ", manager=" + manager
                + ", typeId=" + typeId
                + "]";
    }

}